package com.doform.android.xianggucheng.bean.request_bean;

import com.doform.android.xianggucheng.help.AppHelp;
import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-11.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqRegister3 {
    /**
     *_savetype 	是 	string 	发送短信 	register
     unitname 	是 	string 	单位名称 	X公司
     lnkname 	是 	string 	联系人 	张三
     mobile 	是 	string 	手机号 	15011116979
     area1 	是 	string 	省ID 	13
     area2 	是 	string 	市ID 	1936
     area3 	否 	string 	区ID
     a1name 	是 	string 	省名 	浙江
     a2name 	是 	string 	市名 	杭州
     a3name 	否 	string 	区名
     */


    private boolean debug = AppHelp.getInstance().Debug;
    private String _savetype = "register";
    private String unitname;
    private String lnkname;
    private String mobile;
    private String area1;
    private String area2;
    private String area3;
    private String a1name;
    private String a2name;
    private String a3name;
    private String password;

    public ReqRegister3(String mCompany, String mPerson, String phone, String mPassword, String mProvinceId,
                        String mProvinceName, String mCityId, String mCityName, String mZoneId, String mZoneName) {
        this.unitname = mCompany;
        this.lnkname = mPerson;
        this.mobile = phone;
        this.password = mPassword;
        this.area1 = mProvinceId;
        this.area2 = mCityId;
        this.area3 = mZoneId;
        this.a1name = mProvinceName;
        this.a2name = mCityName;
        this.a3name = mZoneName;

    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
